CC = g++

EPOLL_DIR = ./epoll/build_epoll

#OBJLIB	= libepoll.a

OBJ = main.cpp
		
CXXFLAGS = -g -Wall -I ./epoll
Target = test_epoll

LDFLAGS = -L $(EPOLL_DIR) -lepoll -lpthread

all :$(OBJ)
	cd epoll && make
	$(CXX) $(CXXFLAGS) $^ -o $(Target)  $(LDFLAGS)
	
#$(OBJLIB) :
#	cd $(EPOLL_DIR) && make && sudo make install

.PHONY : clean
clean:
	-rm $(Target) 
	cd epoll && make clean
#; cd $(EPOLL_DIR) && sudo make clean 
	
